#include "rendermanager.h"

RenderManager* RenderManager::m_self=0;

RenderManager::RenderManager()
{
}

RenderManager::~RenderManager()
{
}

void blitTexture(TextureID texture,Box& box)
{
  m_quads.push_back(box);
  m_textureQuads.push_back(texture);
}

void setBackgroundColor(Color& c)
{
  m_backgroundColor=c;
}

void setBackgroundTexture(std::string path)
{
  m_background=Game::self().getTextureLoader().loadTexture(path);
}

void RenderManager::unloadBackground()
{
  m_background=NO_TEXTURE;
  m_backgroundColor=Color(0,0,0);
}

void RenderManager::clean()
{
  m_quads.clean();
  m_textureQuads.clean();
}
